//
//  FriendCell.m
//  QQ界面
//
//  Created by apple on 16/11/18.
//  Copyright © 2016年 LWB. All rights reserved.
//

#import "FriendCell.h"
#import "Friend.h"
@implementation FriendCell
//重写friendModel的set方法
-(void)setFriendModel:(Friend *)friendModel
{
    _friendModel = friendModel;
    //将好友模型的数据给cell
    self.imageView.image = [UIImage imageNamed:friendModel.icon];
    self.textLabel.text = friendModel.name;
    //设置会员的颜色
    if (friendModel.isVip) {
        self.textLabel.textColor = [UIColor redColor];
    }else{
        self.textLabel.textColor = [UIColor blackColor];
    }
    self.detailTextLabel.text = friendModel.intro;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
